my_str = "hello world"
print(f"{my_str[0]},,,,,{my_str[-3]}")

value = my_str.index("llo")
print(value)

new_str = my_str.replace("world","new world")
print(new_str)

new_list = my_str.split(" ")
print(new_list)

my_str = "    haha  ha  haha  "
new_str = my_str.strip()
print(new_str)
my_str = "11  haha  ha  haha 11"
# new_str = my_str.strip("1").strip()
new_str = my_str.strip("1 ")
print(new_str)

str = "itheima itcast boxuegu"
num = str.count("it")
print(num)
new_str = str.replace(" ","|")
print(new_str)
new_list = new_str.split("|")
print(new_list)